import widgets from "./widgets";
import Formily from "./Formily";
Formily.install = function (Vue) {
  Vue.component(Formily.name, Formily);

  // 对widgets组件，进行全局注册
  Object.keys(widgets).forEach(widgetName => {
    Vue.component(widgetName, widgets[widgetName]);
  });
}

export default Formily;